package com.onec.service.api.enums.error;

/**
 * payment 服务状态设计
 *
 * @author ONEC
 */
public enum ChannelErrorEnum {

    /**
     * 成功
     */
    SUCCESS(10000, "成功"),
    /**
     * 成功
     */
    FAILED(10000, "处理失败"),
    /**
     * 服务器内部错误
     */
    SIGN_CHECK_ERROR(6004, "通道报文验签失败！"),
    NO_REGISTER_ERROR(6004, "通道不需要注册商户！"),
    CHANNEL_MERCHANT_EXIST_ERROR(6004, "通道商户已经存在！"),
    TRADE_NUM_NOT_EXIST_ERROR(6003, "交易订单号不存在！"),
    SERIAL_NUM_NOT_EXIST_ERROR(6003, "平台流水订单号不存在！"),

    REALIZE_SERVER_ERROR(6062, "接口实现中，尽情期待！");

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ChannelErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
